Respect lock files in crates.io crates
authorAlex Crichton <alex@alexcrichton.com>
Tue, 27 Feb 2018 15:50:05 +0000 (07:50 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 27 Feb 2018 15:50:58 +0000 (07:50 -0800)
commit8b475c10852930b8c6407cbbd476a5704cb98755
tree3dd5e956990c81044a226e676b369feb8e310ad1
parentbb927ced11440a1d5047f1b2568e9a80cf85e9cc
Respect lock files in crates.io crates

Currently Cargo doesn't publish lock files in crates.io crates but we'll
eventually be doing so, so this changes Cargo to recognize `Cargo.lock` when
it's published to crates.io as use it as the basis for resolution during `cargo
install`.

cc #2263
src/cargo/ops/resolve.rs
tests/testsuite/install.rs